package com.ruoyi.system.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 图书对象 t_book
 * 
 * @author ruoyi
 * @date 2025-07-16
 */
public class Book extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 唯一主键 */

    private Integer id;

    /** 书名 */
    @Excel(name = "书名")
    private String name;

    /** 书作者 */
    @Excel(name = "书作者")
    private String author;

    /** 书数目 */
    @Excel(name = "书数目")
    private String num;


    @Excel(name = "库存")
    private Integer inventory;

    private BookType bookType;

    private Integer typeId;
    private String borrowStatus;

    /** 书目价格 */
    @Excel(name = "书目价格")
    private BigDecimal price;


    public BookType getBookType() {
        return bookType;
    }

    public void setBookType(BookType bookType) {
        this.bookType = bookType;
    }

    public Integer getInventory() {
        return inventory;
    }

    public void setInventory(Integer inventory) {
        this.inventory = inventory;
    }

    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }




    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId()
    {
        return id;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setAuthor(String author) 
    {
        this.author = author;
    }

    public String getAuthor() 
    {
        return author;
    }

    public void setNum(String num) 
    {
        this.num = num;
    }

    public String getNum() 
    {
        return num;
    }

    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public String getBorrowStatus() {
        return borrowStatus;
    }

    public void setBorrowStatus(String borrowStatus) {
        this.borrowStatus = borrowStatus;
    }


@Override
    public String toString() {
    return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("author", getAuthor())
            .append("num", getNum())
            .append("price", getPrice())
            .toString();
}
}


